import { TOKEN_KEY } from '@/constants/index'
import Cookies from 'js-cookie'


//获取token
export const getLocalToken = () => {
  return Cookies.get(TOKEN_KEY)
}
//设置token
export const setLocalToken = (token: string) => {
  Cookies.set(TOKEN_KEY, token)
}
//删除token
export const removeLocalToken = () => {
  Cookies.remove(TOKEN_KEY)
}